public class Teacher extends Person {
    String subject;

    public Teacher(String name, int age, String subject) {
        super(name, age);
        this.subject = subject;
    }

    public Teacher() {
    }
    public  void speak()
    {
        System.out.println(this.name+"讲课");
    }

    public  void checkhomework()
    {
        System.out.println(this.name+"批改作业");
    }

}
